<?php
//Redirects to the student login page.
$dir="";
if(file_exists("StudentLogin.php")){
	header('Location: StudentLogin.php');
} else {
	$check=1;
	while($check==1){
		if(!file_exists($dir . "Student")){
			$dir .= "../";
		} else {
			$dir .= "Student/StudentLogin.php";
			$check=0;
			header('Location: ' . $dir);
		}
	}
}